﻿using System;
using DevExpress.Xpo;

namespace Aij1.Model
{

    public class C_Child : S_Person
    {
        public C_Child(Session session)
            : base(session)
        {
            // This constructor is used when an object is loaded from a persistent storage.
            // Do not place any code here.
        }

        string fReceiveAddr;
        [Size(100)]
        public string ReceiveAddr
        {
            get { return fReceiveAddr; }
            set { SetPropertyValue<string>("ReceiveAddr", ref fReceiveAddr, value); }
        }

        C_Customer fParentId;
        [Association("C-C")]
        public C_Customer ParentId
        {
            get { return fParentId; }
            set { SetPropertyValue<C_Customer>("ParentId", ref fParentId, value); }
        }
    }
}